package dao;

import org.apache.ibatis.annotations.Param;
import pojo.Provider;

import java.util.List;

public interface ProviderMapper {
    List<Provider> getProviderList();
    List<Provider> getProvier(@Param("proCode")String proCode,@Param("proName")String proName);
    /**
     * 增加供应商
     *
     * @param connection
     * @param provider
     * @return @
     */
    public int add(Provider provider);

    /**
     * 通过proId删除Provider
     *
     * @param delId
     * @return @
     */
    public int deleteProviderById(String delId);

    /**
     * 通过proId获取Provider
     *
     * @param connection
     * @param id
     * @return @
     */
    public Provider getProviderById(String id);

    /**
     * 修改用户信息
     *
     * @param connection
     * @param user
     * @return @
     */
    public int modify(Provider provider);

}
